import request from '@/utils/request'

// 获取自动任务列表
export const getAutoJobList = (params) => {
  return request({
    url: '/api/jobAutoDataSourceRelation',
    method: 'get',
    params
  })
}
export const addAutoJob = (data) => {
  return request({
    url: '/api/jobAutoDataSourceRelation',
    method: 'post',
    data
  })
}

export const updateAutoJob = (data) => {
  return request({
    url: '/api/jobAutoDataSourceRelation',
    method: 'put',
    data
  })
}

export const deleteAutoJob = (idList) => {
  return request({
    url: '/api/jobAutoDataSourceRelation?idList=' + idList,
    method: 'delete'
  })
}
